package com.seari.custody.mapper;

import com.seari.custody.bean.User;
import com.seari.custody.bean.UserDTO;
import com.seari.custody.bean.UserPersonalCenter;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface UserMapper {

    public void save(User user) throws Exception;

    public List<User> getUserFoByToken(User id);

    public User findUserByUsername(String username);

    public Integer addUser(User add);

    public int updateUser(Map<String, Object> params);

    Integer deleteUser(String id);

    List<UserDTO> getAllUsers();

    List<UserDTO> qryUserByName(String userName);

    User qryUserById(String username);

    User qryUserByNumber(String number);

    String qryNameIdByNumber(String number);

    UserPersonalCenter personalById(String username);

    int updatepersonalById(Map<String, Object> params);

    String iconImgServer(String userNumber);
}
